# -*- coding: utf-8 -*-
# @Time        :2025/8/1 上午11:11
# @Author      :文刀水寿
# @File        : 类线程.py
"""
 @Description :
"""
import threading
import time


class testa(threading.Thread):
    def run(self) -> None:
        print(self.name)
        self.dance(1)

    def sing(self, round_num):
        print(f"唱歌 --------{round_num}")
        time.sleep(1)  # 模拟耗时操作

    def dance(self, round_num):
        print(f"跳舞------{round_num}")
        round_num += 1
        time.sleep(1)  # 模拟耗时操作
        self.sing(round_num)


if __name__ == '__main__':
    u = testa()
    u.start()
